<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    li{
        width: 200px;
        height: 35px;
    }
</style>

<body>
    <ul>
        <li>飞机</li>
        <li>飞机</li>
        <li>飞机</li>
        <li>飞机</li>
        <li>飞机</li>
        <li>飞机</li>
    </ul>
</body>

</html>
<script>
    var ul = document.querySelector('ul');
    ul.onmouseover = function (e) {
        e.target.style.backgroundColor = 'pink';
    }
    ul.onmouseover = function (a) {
        e.target.style.backgroundColor = ''
    }
</script>